package cn.lili.modules.goods_auth.serviceImpl;

import cn.hutool.http.HttpUtil;
import cn.lili.modules.goods_auth.mapper.GoodsAuthLogMapper;
import cn.lili.modules.goods_auth.service.GoodsAuthLogService;
import cn.lili.modules.goods_auth.service.GoodsAuthService;
import cn.lili.modules.system.entity.dos.LiAuth;
import cn.lili.modules.system.entity.dos.LiAuthLog;
import cn.lili.modules.system.entity.dto.AuthSearchParams;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.util.Assert;

import javax.annotation.Resource;

@Service
public class GoodsAuthLogServiceImpl extends ServiceImpl<GoodsAuthLogMapper, LiAuthLog> implements GoodsAuthLogService {

    @Resource
    private GoodsAuthService goodsAuthService;

    /**
     * 日志分页查询
     *
     * @param searchParams 查询条件
     * @return 返回结果
     * */
    @Override
    public Page<LiAuthLog> logPage(AuthSearchParams searchParams) {
        return this.page(new Page<>(searchParams.getPageNumber(), searchParams.getPageSize()), searchParams.queryWrapper());
    }
}
